<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./js/vue.js"></script>
    <title>单元框测试</title>
</head>
<body>
 
    <div id="root1">  
      <label>  
        <input type="radio" name="radioGroup" :value="true" v-model="isSelected"> 是  
      </label>  
      <label>  
        <input type="radio" name="radioGroup" :value="false" v-model="isSelected"> 否  
      </label>  
      <p>当前选择：{{ isSelected ? '是' : '否' }}</p>  
    </div>  

    
  <script>  
  new Vue(
    {  
    el:'#root1',
    data() {  
      return {  
        // 默认为否，即false  
        isSelected: false,  
        a:12,
        b:a
      };  
    },  
  } ,
  ) 
  </script>  
    
  <style scoped>  
  /* 可以在这里添加一些样式 */  
  </style>
    
</body>
</html>